package com.showtao.front.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.showtao.front.domain.AdminMenu;

public interface AdminMenuRepository extends JpaRepository<AdminMenu, Long> {

    @Query("select distinct a from AdminMenu a left join a.permission")
    Page<AdminMenu> findAllJoinPermission(Pageable pageable);
}
